<?php
/**
 * Created by YuanXiShop.
 * User: YuanXi
 * Date: 2021/6/4 0004
 * Time: 17:14
 */

namespace home;


use models\BaseDao;

class Page extends Home
{
    function index($id)
    {
        $db = new BaseDao();

        $page = $db->get('page','*',['id'=>$id]);

        $this->assign($page);

        $this->assign('position',' &gt; 帮助中心 &gt; '.$page['name']);

        $this->assign('title',$page['name']);

        $this->display('page/index');
    }
}